<template>
    <div class="hello">
        <x-header >彩屏登陆</x-header>
        <div style="position: absolute;width: 100%;">
            浏览器访问
            <a href="https://screen.zjlijiujia.com/capacity/login/login.html">https://screen.zjlijiujia.com/capacity/login/login.html</a>
            微信扫描后，从控制台的打印消息中可以获取unionid
            <group title="授权">
                <x-input v-model="unionid" title="unionid" :min="28" :max="28" placeholder="请输入unionid" ></x-input>
            </group>

            <group title="操作">
                <cell title="更新用户信息" is-link link="/screen/UpdateUserInfo"> </cell>
                <cell title="添加训练记录" is-link link="/screen/ScreenAddSportRecord"> </cell>
            </group>

        </div>
    </div>
</template>

<script>
    import { Group, Cell, Tabbar, TabbarItem, Swiper, SwiperItem } from '_vux@2.9.3@vux'
    // import {http} from '../../hos/http.js'

    export default {
        components: {
            Group,
            Cell,
            Tabbar,
            TabbarItem,
            Swiper,
            SwiperItem
        },
        name: 'ScreenLogin',
        computed: {
            unionid: {
                get () {
                    return this.$store.state.unionid
                },
                set (value) {
                    this.$store.commit('setUnionid', value)
                }
            }
        },
        data () {
            return {
            }
        },
        methods: {
        },
        beforeDestroy () {
        }
    }
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
    h1, h2 {
        font-weight: normal;
    }
    ul {
        list-style-type: none;
        padding: 0;
    }
    li {
        display: inline-block;
        margin: 0 10px;
    }
    a {
        color: #42b983;
    }
</style>
